diff options
| author | Adam Soltys <[email protected]> | 2023-03-21 11:55:58 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-03-21 11:55:58 -0700 |
| commit | d3db47e4e32adb9da6f56420cf7acb7448f9099c (patch) | |
| tree | 3c6be386ce2250b0ce16585ba94f115ad0f30915 /src/routes/(app)/[username]/invoice/[hash] | |
| parent | 067054f780e2f6f8acd9c950cbc2227783f6208b (diff) | |
| download | coinos-ui-send-fiat.tar.gz coinos-ui-send-fiat.zip | |
wipsend-fiat
Diffstat (limited to 'src/routes/(app)/[username]/invoice/[hash]')
| -rw-r--r-- | src/routes/(app)/[username]/invoice/[hash]/+layout.server.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/routes/(app)/[username]/invoice/[hash]/+layout.server.js b/src/routes/(app)/[username]/invoice/[hash]/+layout.server.js index 7cf87e14..df22400a 100644 --- a/src/routes/(app)/[username]/invoice/[hash]/+layout.server.js +++ b/src/routes/(app)/[username]/invoice/[hash]/+layout.server.js @@ -9,6 +9,8 @@ export async function load({ depends, params, url, parent }) { let { hash } = params; let invoice = await get(`/invoice/${hash}`); + console.log("HI", invoice) + if (user && invoice.uid !== user.id && !url.pathname.includes('tip')) throw redirect(307, `/send/invoice/${hash}`); |
